package com.zerdoor.service.impl;

import com.zerdoor.dao.ManuscriptDao;
import com.zerdoor.service.ManuscriptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by xiaoji on 2015/1/8.
 */
@Service
public class ManuscriptServiceImpl implements ManuscriptService {

    @Autowired
    private ManuscriptDao manuscriptDao;
    @Override
    public Map<String, Object> getRaceInfoById(int raceId) {
        return manuscriptDao.getRaceInfoById(raceId);
    }

    @Override
    public void addManuscript(Map<String, Object> map) throws Exception {
        manuscriptDao.addManuscript(map);
    }
}
